package com.wenhua.junshao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wenhua.junshao.dot.DishDto;
import com.wenhua.junshao.entity.Dish;

public interface DishService extends IService<Dish> {

    //新增菜品的时候,同事插入菜品对应的口味信息,需要操作两张表
    void saveWithFlavor(DishDto dishDto);

    //依据id查询菜品信息和口味信息
    DishDto getByIdWithFlavor(Long id);

    //更新菜品信息和口味信息
    void updateWithFlavor(DishDto dishDto);
}
